<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
     <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	//获取绝对路径路径
	String path = request.getContextPath();
    String basePath = request.getScheme() + "://"
				+ request.getServerName() + ":" + request.getServerPort()
				+ path + "/";
%>
<section class="Topmenubg">
    <div class="Topnav">
        <div class="LeftNav">


            <c:if test="${empty sessionScope.user}">
                <a href="/gotoLogin">登录</a>/<a href="/gotoReg">注册</a>
            </c:if>

            <c:if test="${!empty sessionScope.user}">
                <ul >
                    <li><a href="#" class="delicious">${sessionScope.user.username}</a></li>
                    <li><a href="/logout" class="tumbrl">Facebook</a>退出</li>

                </ul>
            </c:if>



            <a href="#">QQ客服</a><a href="#">微信客服</a><a href="#">手机客户端</a>
        </div>
        <div class="RightNav">
            <a href="/user/info">用户中心</a>
            <a href="/orders/list" title="我的订单">我的订单</a>
            <a href="/cart/list">购物车</a>
            <a href="/collection/list"  title="我的收藏">我的收藏</a>
            <a href="#">商家入驻</a>
        </div>
    </div>
</section>
<div class="Logo_search">
    <div class="Logo">
        <img src="/images/logo.jpg" title="DeathGhost" alt="模板">
        <i></i>
        <span>西安市 [ <a href="#">莲湖区</a> ]</span>
    </div>
    <div class="Search">
        <form method="get" id="main_a_serach" onsubmit="return check_search(this)">
            <div class="Search_nav" id="selectsearch">
                <a href="javascript:;" onClick="selectsearch(this,'restaurant_name')" class="choose">餐厅</a>
                <a href="javascript:;" onClick="selectsearch(this,'food_name')">食物名</a>
            </div>
            <div class="Search_area">
                <input type="search" id="fkeyword" name="keyword" placeholder="请输入您所需查找的餐厅名称或食物名称..." class="searchbox" />
                <input type="submit" class="searchbutton" value="搜 索" />
            </div>
        </form>
        <p class="hotkeywords"><a href="#" title="酸辣土豆丝">酸辣土豆丝</a><a href="#" title="这里是产品名称">螃蟹炒年糕</a><a href="#" title="这里是产品名称">牛奶炖蛋</a><a href="#" title="这里是产品名称">芝麻酱凉面</a><a href="#" title="这里是产品名称">滑蛋虾仁</a><a href="#" title="这里是产品名称">蒜汁茄子</a></p>
    </div>
</div>
<nav class="menu_bg">
    <ul class="menu">
        <li><a href="/">首页</a></li>
        <li><a href="list.html">订餐</a></li>
        <li><a href="category.html">积分商城</a></li>
        <li><a href="article_read.html">关于我们</a></li>
    </ul>
</nav>